/**
 * 
 */
package com.exam.boImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.exam.dao.IStudentDAO;
import com.exam.exambo.IStudentBo;
import com.exam.model.Student;

/**
 * @author adminpro
 *
 */
@Service
public class StudentBoImpl implements IStudentBo {

	private IStudentDAO studentDao;
	@Autowired
	public void setStudentDao(IStudentDAO studentDao) {
		this.studentDao = studentDao;
	}

	/* (non-Javadoc)
	 * @see com.exam.exambo.IStudentBo#getList()
	 */
	@Override
	public List<Student> getList() throws Exception {
		return studentDao.getList();
	}

	/* (non-Javadoc)
	 * @see com.exam.exambo.IStudentBo#addStudent(com.exam.model.Student)
	 */
	@Override
	public void addStudent(Student stdObj) throws Exception {
	     studentDao.addStudent(stdObj);
	}

	/* (non-Javadoc)
	 * @see com.exam.exambo.IStudentBo#updateStudent(com.exam.model.Student)
	 */
	@Override
	public void updateStudent(Student stdObj) throws Exception {
		studentDao.updateStudent(stdObj);

	}

}
